#ifndef __MYRTC_H__
#define __MYRTC_H__

extern struct 
{
    uint16_t year;              
    uint8_t hour;               // 0-23       
    uint8_t minute;             // 0-60 
    uint8_t second;             // 0-60  (0 - 60 allows for the occasional leap second) */
    uint8_t month;              // 1-12
    uint8_t day;                // 1-31
    uint8_t weekday;            // 1-7
}Time;

void MyRTC_Init(void);
void MyRTC_WriteTime(void);
void MyRTC_ReadTime(void);


#endif
